<?php
	class hinhanhbs
	{
		public $MaHinhAnh = 0;
		public $MaSanPham = 0;
		public $TenHinhAnh = "";
		public $patch = "";
		public function Add()
		{
			$db = new hinhanhdb();
			return $db->Add($this->TenHinhAnh, $this->MaSanPham, $this->patch);
		}
		
		public function Delete()
		{
			$db = new hinhanhdb();
			return $db->Delete($this->MaSanPham);
		}
		
		public function Update()
		{
			$db = new hinhanhdb();
			return $db->Update($this->MaHinhAnh, $this->TenHinhAnh, $this->patch);
		}
		
		public function GetList()
		{
			$db = new hinhanhdb();
			return $db->GetList($this->MaHinhAnh, $this->TenHinhAnh,  $this->MaSanPham);
		}
		public function Find()
		{
			$db = new hinhanhdb();
			return $db->Find($this->MaHinhAnh, $this->TenHinhAnh,  $this->MaSanPham);
		}
	}
?>